Skip to content

fix: Remove tiled writer if submitted task doesn't exist#1484

Merged
tpoliaw merged 5 commits intomainfrom
duplicate-tiled-writers
Apr 22, 2026
Merged

fix: Remove tiled writer if submitted task doesn't exist#1484
tpoliaw merged 5 commits intomainfrom
duplicate-tiled-writers

Conversation

@tpoliaw
Copy link
Copy Markdown
Contributor

@tpoliaw tpoliaw commented Apr 13, 2026

Whenever a task is submitted, a TiledWriter is added to the run engine
and is only removed when the task is complete. If the task never starts
due to not being found, the writer would never be removed and subsequent
tasks would have duplicate writers causing write errors to tiled.

Catching the KeyError and removing the subscribers immediately is a
workaround that works but should be removed when the internal pending
tasks queue is removed.

Fixes #1480

@tpoliaw tpoliaw requested a review from a team as a code owner April 13, 2026 13:05
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.25%. Comparing base (c8dce0b) to head (a43b27c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1484      +/-   ##
==========================================
+ Coverage   95.23%   95.25%   +0.01%     
==========================================
  Files          43       43              
  Lines        3151     3159       +8     
==========================================
+ Hits         3001     3009       +8     
  Misses        150      150              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tpoliaw tpoliaw requested a review from dan-fernandes April 13, 2026 13:26
@tpoliaw tpoliaw force-pushed the duplicate-tiled-writers branch from 0b2da0d to d525c8d Compare April 14, 2026 16:17
@dan-fernandes
Copy link
Copy Markdown
Contributor

Nit: could use a more descriptive name than ch

tpoliaw added 5 commits April 22, 2026 11:14
Whenever a task is submitted, a TiledWriter is added to the run engine
and is only removed when the task is complete. If the task never starts
due to not being found, the writer would never be removed and subsequent
tasks would have duplicate writers causing write errors to tiled.

Catching the KeyError and removing the subscribers immediately is a
workaround that works but should be removed when the internal pending
tasks queue is removed.
system tests don't count for coverage
@tpoliaw tpoliaw force-pushed the duplicate-tiled-writers branch from 6502871 to a43b27c Compare April 22, 2026 10:14
@tpoliaw tpoliaw merged commit b2c927f into main Apr 22, 2026
17 checks passed
@tpoliaw tpoliaw deleted the duplicate-tiled-writers branch April 22, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PUT to /worker/task stuck on 409, after a 404

2 participants